package com.CreationalPartterns.FactoryMethodPattern;

import com.CreationalPartterns.StaticFactoryMethod.Operation;

public class Client {

	public static void main(String[] args) {
		String oper0 = "+";
		IFactory operFactory;
		if (oper0.equals("+")){
			operFactory = new AddFactory();
			Operation oper = operFactory.CreateOperation();
			oper.setNum1(1);
			oper.setNum2(2);
			System.out.println(oper.getResult());
		}
			
	}
}
